package com.ruoyi.tb.lmt.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * rfid信息业务对象 rfid_data
 *
 * @author ruoyi
 * @date 2024-03-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RfidDataBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 原始数据
     */
    @NotBlank(message = "原始数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;

    /**
     * 时间戳
     */
    @NotNull(message = "时间戳不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date date;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String rfidBzm;

    /**
     * 设备IP
     */
    @NotBlank(message = "设备IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fromIp;


}
